package com.maitian;

public class Main {
    public static void main(String[] args) {
        System.out.println("Hello world!");

        String connectionString = "modbus-tcp:tcp://127.0.0.1:502";

        try (PlcConnection plcConnection = new PlcDriverManager().getConnection(connectionString)) {

            // Check if this connection support reading of data.
            if (!plcConnection.getMetadata().canRead()) {
                logger.error("This connection doesn't support reading.");
                return;
            }


            

        }

    }
}